package com.contextor.magiccards.dao.user.personage;

import com.contextor.magiccards.dao.GenericDao;
import com.contextor.magiccards.model.character.Personage;
import com.contextor.magiccards.model.errors.dao.ObjectNotFoundException;
import com.contextor.magiccards.model.user.User;

/**
 * User: sergey
 * Date: Mar 22, 2011 12:23:59 PM
 */
public interface PersonageDao extends GenericDao<Personage, Integer> {

    Personage loadByUser(User user) throws ObjectNotFoundException;

    public Personage loadByUserId(int shard, String userId) throws ObjectNotFoundException;

}
